check headless into git, fix path.exists things