many small bugfixes using ifort