add existiong rule check
refactoring
refactoring floating ip functions