updated kWjs for persistence