add support for reruning tests without rebuilding all the layers
make the reload_code function a bit smarter with what it reloads