add some debug to compile stage