add better error handling in case of invalid arguments