added support for privly-applications