WIP - problem with secret key