added a linux guard