added logging to debug