step towards linux/osx compatibility