take out temp appDelegate methods