Added ref store() method (does adds and gets) and used in importing