added lib
Added logging