switched to using restler, handles query params better