added revalidate and fixed reset