added NSLog statements to help troubleshoot