added module for program diagnosis