added query attr to support req object
0.1.5