complete scew implementation