added flash stuff