moved exemption parsing