moved loderef from lode.js