moved parser into sources (thus dramatically speeding up compilation)