mostly fortran mods