tidy up reference files