reject should return reference to dialog and error
use global config
update to v0.5.0