deleted duplacate code
deleted settings_fields. added functions for public key and private key