FlexSTP basic structure
FlexSTP implement global vars
FlexSTP compute returns