add some logMessages, comment some NSLogs