add messageResource, some configuration changes