change ports input/output values to booleans