added query 'from' attribute to enable paging