added more debug output