fix switch order
Merge pull request #2 from philbrookes/add-obj-parser

fix switch order