only initialize serial connection if in debug mode