adds some logging to appDelegate methods