removed use of secret method in favor of secrets