i believe the ed bit is being set properly now
code to try and set the threshold
updating program code