get persistence working