fixes to flex sources