have deprecation working with deprecation message in apiObjects and apiLayer