added more debug prints