basic flex scheme