first draft of script for ip gaps fix