updated for new dartflash 0.7.1