converted some prints to logging calls