broad the support for continuous_read + add end_if_matched to run command

I found few scenarios where 'end_if_matched' was needed.