change runTransact function to avoid quote escaping