now works on headless servers