added some NSLogs