update main lib and config setup