class service moved again to appDelegate