fixed secret key problem