vars: initial implementations of Module and Reference (ghost)