fixed err handling
passing hosts to frenchpress and send()ing back the result