hopefully fixed refs now