small api fixes