updated for stage3d context option