minor api bug fixes