dev
added logging