imported from triobin