add router and request handlers