handle mac vs linux