added support for simple references

fixes #33