fixed up tab removal scripts