prepare libs