update the secret config and setting up some directories