fixed missing flash - was deleted in format_response