fixes for flash example