fixed error handling on parameters from client