added logging back in