minor imporvements to transparent version of relay code