several optimizations
cluster scripts that actually work