* fix error handling for deployment