basic persistence working