implement pagination and subnet number limit