updated config and sme refactoring