ported run script parser over