[DO NOT MERGE] 587 save public private settings

closes #587

:+1: destructuring!