framework works with master and slaves