add exit, template not currently being used, implement later