add getters with deprecation warning