minor api work