v0.2.3: smarter username detection