added core and api declaration