added a key option to specify the key for the result data object