move hackish dialog extender into utility script