porting expressjs routing engine