added data logging for actions