ESP: bisect script modify for safety