preload library to reduce buffering