add option for creating nested keys