tweak error handling
switch to Lab for tests
update dependencies
formatting