refactored functions for creating/associating floating ips