really clever tool that seems to work OK.