modified some flex sources