core io routines and manager