change traffic logic, add UI for debugging