cleanup corelibrary