improve mac env