copied example from openfx