create simple api for settings
add core for index settings #4