make it work on unix