updated for file and folder listings beyond 500 items per call