add app as a stdClass