moved the check to post arg parsing