first stab at implementing reference management