C client: all var and part of file functions