refactor adding items
only run on node 0.10
data is a method