take parsing out of before filter