Commitments and contingencies (Tables)
12 Months Ended
Dec. 31, 2019
Commitments and Contingencies Disclosure [Abstract]  
Lease, Cost
The weighted average remaining lease term and weighted average discount rate of the Company's operating leases are as follows:
 
 
December 31, 2019
Weighted average remaining lease term in years
 
5.12

Weighted average discount rate
 
8.27
%
Assets And Liabilities, Lessee
The following table summarizes the presentation in the Company's consolidated balance sheets:
Leases (in thousands)
 
Classification
 
December 31, 2019
Assets
 
 
 
 
Operating
 
Lease right-of-use asset
 
$
6,156

Finance
 
Lease right-of-use asset
 
150

Total leased assets
 
 
 
$
6,306

Liabilities
 
 
 
 
Current
 
 
 
 
   Operating
 
Lease liabilities
 
$
990

   Finance
 
Lease liabilities
 
127

Non-current
 
 
 
 
   Operating
 
Lease liabilities, net of current portion
 
5,373

   Finance
 
Lease liabilities, net of current portion
 
22

Total lease liabilities
 
 
 
$
6,512

Lessee, Operating Lease, Liability, Maturity
The minimum lease payments related to the Company's operating leases in accordance with ASC 842 as of December 31, 2019 were as follows (in thousands):

 
Operating Leases
 
Finance Leases
 
Total
2020
$
1,477

 
$
134

 
$
1,611

2021
1,473

 
23

 
1,496

2022
1,511

 

 
1,511

2023
1,548

 

 
1,548

2024 and thereafter
1,853

 

 
1,853

   Total lease payments
$
7,862

 
$
157

 
$
8,019

Less imputed interest
(1,500
)
 
(7
)
 
(1,507
)
   Total
$
6,362

 
$
150

 
$
6,512

Finance Lease, Liability, Maturity
The minimum lease payments related to the Company's operating leases in accordance with ASC 842 as of December 31, 2019 were as follows (in thousands):

 
Operating Leases
 
Finance Leases
 
Total
2020
$
1,477

 
$
134

 
$
1,611

2021
1,473

 
23

 
1,496

2022
1,511

 

 
1,511

2023
1,548

 

 
1,548

2024 and thereafter
1,853

 

 
1,853

   Total lease payments
$
7,862

 
$
157

 
$
8,019

Less imputed interest
(1,500
)
 
(7
)
 
(1,507
)
   Total
$
6,362

 
$
150

 
$
6,512

Schedule of Property Subject to or Available for Operating Lease
As of December 31, 2018, future minimum commitments under the Company's operating leases with initial terms of more than one year were as follows (in thousands):
    
 
 
Total Lease Commitments
2019
 
$
1,637

2020
 
274

Total
 
$
1,911