adaptation for Linux