move read_sps into SPS class