added tc and rpgi compatibility