clean up the framework