fix config.spec
add module definition pattern