logging working
fixed timing issue