added path argument passed to onload callback