change config into attribute in all modules