removed printouts, logging is much better