update lib switching macros