updating library to be fully supported in 3