api: assume this refers to global