implements activity ref storage