use another package and adapt a little more to mac