working version of cn1lib