moved type settings to ftdetect