fix main context translate
remove debug code