set the namespace before creating the handler