move admin stuff to plugin