added rudimentary support for fetching with attributes dictionaries