improve error handling
update dependencies