save method now returns secret key