frontend: add persistence support to dia source