[MAYBE MERGE] 587 save public private settings

closes #587