finish parsing input/output