correction to rm-f still not working correctly