added the option to decode a line