added factory for getenvuser