working cross-references and basic eqn support