updated clean up after bsexaml