updated to api changes