add logging to debug on iphone