add API prototype