replace get_task_method with process_message