added load/save from lib