refactored mdbSender, better error messages