add compatibility with linux