replace IO puts with Logger