move clean_obj to lib/util