finished all the functions in fat.c, ready for pass off