adjust build to api change