network middleware of moon