logging for debugging
now working again.