detect username at runtime