new file exception handling