fixes #2157 - methods should accept hosts argument

Methods are called from line 25 with hosts as the argument.