added permissions and apps basic functionality