changed ip to hostname for main call