cleanup
wrote some plugins for registration