proper error handling in new modules