add flex file
change extension for file type