added some logging ,lol