quick&dirty 'fix' for filefactory