make script parsing less terrible