more bugfixes (looks like it's working) and config compiler handles multiple formulas (pc-version runs but only checks first formula currently)