remove exit() as per thomas's recommendation