xtra pass by ref, sigh