added getting secret key from env