added exit for testing purposes