refactoring and preseve status by actions which are run skeleton for json and yaml output from data (non-working for now)