add check that the preview path actually exists