build base modules