remove S command
improve filetype scripts