add masterPort argument to InitLocal