added load/save config functionality