add debug option to subscriber function.