flex doc