added files for master-slave