function to expand settings dictionary