small improvements to scripts. door script still needs further testing.