minor corrections to match api