tested on macos, thx holger