adding better logging around listFn