only write lastpost debug if we can