added sys exit