logging working now