adds some cleanup