cleaned up getArgs