added exit() on fail