replace flex deps to separate folder