more logging added for debugging