added a simpler emit function to the namespace