test refs
add refs support