trim old files
some fixes