mailing fixed. need short refactoring of configs