fix conditional implementation of SerialInterface