fix language detection; remove f_guid debugging