add required files and add exception