use rest instead of query string