yet more work on reference building