rip out NAL parsing into its own class