better error handling for submithost