improve config by $config and $ROUTE_METHOD_config