trying to sort out a problem with empty package lists.  also, error 500
on the api listener persists, but less frequently when sleeping for 1
second between calls