fix secret key stuff