debug Main interface for compile
ready branch