minor API fixes