| Summary of significant accounting policies - Concentration of Credit Risk (Details) | 12 Months Ended | |
|---|---|---|
| Dec. 31, 2018  USD ($)  customer | Dec. 31, 2017  USD ($)  customer | |
| Concentration Risk [Line Items] | ||
| Cash, FDIC Insured Amount | $ | $ 250,000 | |
| Cash, Uninsured Amount | $ | $ 0 | $ 1,172,911 | 
| Customer concentration risk | Revenues | ||
| Concentration Risk [Line Items] | ||
| Number of customer representing more than 10% of revenues or trade accounts receivable | 0 | 1 | 
| Number of customers | 500 | |
| Customer concentration risk | Trade accounts receivable | ||
| Concentration Risk [Line Items] | ||
| Number of customer representing more than 10% of revenues or trade accounts receivable | 1 | 0 | 
| Concentration risk, percentage | 10.00% | 10.00% | 
| X | ||||||||||
| 
- Definition Concentration Risk, Number of Significant Customers No definition available. 
 | 
| X | ||||||||||
| 
- Definition Credit Risk, Number of Customers No definition available. 
 | 
| X | ||||||||||
| 
- Definition The amount of cash deposited in financial institutions as of the balance sheet date that is insured by the Federal Deposit Insurance Corporation. No definition available. 
 | 
| X | ||||||||||
| 
- Definition The amount of cash as of the balance sheet date that is not insured by the Federal Deposit Insurance Corporation. No definition available. 
 | 
| X | ||||||||||
| 
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
 | 
| X | ||||||||||
| 
- Definition For an entity that discloses a concentration risk in relation to quantitative amount, which serves as the "benchmark" (or denominator) in the equation, this concept represents the concentration percentage derived from the division. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 | 
| X | ||||||||||
| 
- Details 
 |