clean up initial runtime errors (array bounds, etc)