modified to support ArchLinux