adds support for multiple miners instead of only one