refactor inv message processing