refs object should be create on bind only if it doesn't exist already
updated test
updated standalone files