bug fixes in delta/weighted-delta and other minor changes