minor api fixes