add last_seen to code.chan