added a get(key) method that returns a dict if able