dx example and some fixes