removed cat :(, added secret key handling