adding more output statements for more logging