this needs a debug level, if the output is needed at all...