add exception file and some more stubs