made rel and namespace exports functions rather than constructors