added set_param for user feedback in debug mode