now supports long text bodies
added configuration logic