fix for use on mac