config register function fix, comment added to index