updated to work with ZK (have to use custom api_chili.lua to override ZK's)