making gbpu tolerant to the reffile not existing