fixed error handling [..] scan. adjusted selector ws handling