improve secrets and base config object