small api bugs