finish logger, begin index
add index support