finished basic ref stuff