added possibility to set a result message