config and index