added more code to do protocol detection, experimented with different SRU and SRW...