cleanedup the framework