fix pomelo api
make pomeloApi as an object