fixed revalidate + added scriptwindow