Some refactoring on  the script stuff, some musings