FIX: from/to to input/output