update to lib v2 for IO