initial commit of wedcs-based working version.