added filefactory.copy

also changed not a in  ...  to a not in