fixed a bunch of errors during reconfiguration