rewrite router to use hipache