adding flag and proper local address
adding http auth flags