add flag to decode stage