layer 2 for flash