use of WgUsername variable removed