added host and port configuration to startPhantom method