fixes missing relative path
makes use of paramfile infrastructure to do away with code generation in mortar core