adapt to work with new API version