fix threshold validation and new default