removed  process exit as I don't want it to exit