simplify library loading