renamed ns alias
extracted authentication manager