catch up to gotk3 and fix a race
make send message work too; we dont delete the temp file yet