finally have working on Mac and Ubuntu