key is envelope as a string