resolve imports and fmodel paths