Do we need this. shouldnt we always load local resources when debug is on