working username parsing (and display) for subdomains and subfolders