get file internal logic structure set.

get file internal logic structure set. Just gotta fill in the blanks
with file io + packets sending back and forth :)