add argc checking and error message for file not exists