added config and api-stub