validation rework, support refresh on server-side.