added ability to escape from pagination