fix for api changes