added erorr handling and handling for missing ip_pool name