prepare lib for multi-version, multi-environment