fork headless to background