fold input/output into direction