ADD new action type to support binary output

REFACTOR existing actions
UPDATE tests