fixed an inherited bug in which installing monitor overwrites all of the production code - sorry everybody!