workaround for headless environments?