add limit and offset to ents->json