handling exception for non existent file