make flash interface a lot more flexible