moved access api to core lib