createClass(): regard config.extend