closes #1: made settings persistent