restore and mark as deprecated to fix API compatibility problem