update headless code