finalising the secrets file