db fail support; keys from env;