add loging to wmp-tl
move print outside conn function