first 2 scripts, only partly working