added support for relative ref