debugging set_sim and configuration for threshold