call halt when program starts