refactored config parser for sendr