move headless to their own files

[skip ci]