fix arg. error handling