added mkFn helper and configFileName function