changed the output of frame length detector from char to message