well that didn't work...trying to include the hostip bit in opts passed directly to login()