handle defn and accessor in map