add async lib and rewrite routes