removed secret key handling