updated scripts for more cross-platformy goodness