improved empty item parsing