add headless to slave