switch common to use the revealing module pattern