adding app keys and ids check