added redis persistance