got the files stuff nearly there