refactor api to remember node settings #10

#10