startup script and minor other changes