update fortran back end, simplified version
clean up