adding null check
fixing dep policy with appId
adding sequence number for instances