passes command arguments correctly