some scipy-version related bugfixing