move print to log and console to util