added module event, file, version clean up
fixed config cleaning