using exit cmd instead of die