modified workflow handler for newline and asterisk