clean up imports.
add command hook for easier standard plugins.