move some stuff around
add fortran code for density test