update libraries, use new bzapi end point
convert from bzapi to rest api