simplify use of canonical main() args
check file extensions