moved execution to eof
additionally saving private key as json