added support for map in require config