trying to make this work on ubuntu and mac