exception handling files and remote class file