added logging in