updated all packages and improved error handling