add auto protocol detection (from file or input)
add auto protocol detection (from file or input)