added support for apps