generate keys correctly for the demo scripts, fixes #3