reordered for better detection of filetypes vs cmd.command syntax