try to make multiple onloads friendlier to each other