merge zpoi 3.0, implement new api for it