fix nonmem, autodetect format