add ref to _compiler construction_