compat with 2.0.x, removed unused api declaration