init flex sdk