prep for lib