complete rewrite, one real script