add provider and set address to localhost