shouldn't this be in a PUI thread?