added flash fallback