legacy and modern APIs for flexibility