added frame escaping