adding debug msgs