returns tiapp as well as part of api