switching platforms, must change where it is invoked