fix resource loading snafu