added more debug outpu