pulled paginated_get() into a util file
first pass at time-to-close script