add logging
print to logging