ENG:finish args check in main function