changed the way assets are loaded in production mode