adds -f option to check single file