bug fix

add fread

still some errors ...