changes for 0.4x compat (new method of creating routes for plugins)