initial version of wedge (does not work yet)