modify serve's routing rather than rack's to fix #196