changed programming with api to using api in other projects