added private msg and keys for each device instance