handle NaN with a large negative constant
Changes to handle NaN
Changes to handle remote & local hosts