added id/length parser methods