replace old library functions with new object methods