manually reset some of the code, hopefully it is no longer borked