added set_last_seen method