adds attr dict builder; fixes #75