settable sws algo for videoports
lots of fixes