some flash improvements