conditional cleaning; ssr added