refined secret setup