added parse key to pair in cloud code