added buildQueryString
fixed closure support for routes