restore API compatiblity