externalize errors
reworked mail composer, still wip