making transition to new API