dir function
exit function