add some new common code