fixed argument errors caused by process_args function