added methods for authority to set the keys, not quite finished yet