rewrite valve net without api. now caching