handle command arguments