created a initial API and XML methods