adding data access and api