implements mesos slave and master-slave connection