set up format infrastructure for input/output