basic statements api func