clean up some user code