lcg: modularize and allow to switch b/w lcg and lcg-base