prints replaced with logging