cleaning older files and better bean management