adding some initial API access code