only load avatar when not headless