fixes for debian distros