change polling rate to float and default to 2.0