adding exit if parse fails