 
   defmacro import_routes(module) do
     quote do
-      plug unquote(module)
+      defp external_match(conn, [module: unquote(module)]) do
+        unquote(module).match(conn, [])
+      end
+      plug :external_match, module: unquote(module)
     end
   end
 


  defmacro __before_compile__(_env) do
    quote do
      plug :match
      plug :dispatch

      @doc """
      Pass-through route that matches all parametes. This ensures that the plug
      pipeline won't die if there are more plugs after this module.

      @path_root "/"

      plug Plug.Logger
      plug :match

      @before_compile Trot.Router
      @before_compile Plug.Builder
