move init hook back to main plugin file