fixed random files deleting
added in tests all should be well
all should be working