added new tsapi class