make the library backward compatible