improve masala configuration