added flash helpers