added a litle logging