use a single sscanf call and new shm log format