thanks @domcleal, that works perfectly.
had to change ip_address method name, as it was already reserved and set to be deprecated in Fog, so was throwing a few warnings