tmp file for master/slave