added some exit methods