general file tidying up