added all serial interpretation code