allow options to be overridden and allow a key_prefix