add sparse option to index
add core/register API call