finish input/output parsing