rying to separate cobweb from cobweb3 code for clarity