error handling of args