add lazy referencing closses #84
add test for lazy referencing