ported superres to T-API