added support for multiple dictionaries