added support for multiple dictionary definitions