migrate bin to new logger