added logging possibly