still trying to work out current_app in plugins