new global class and error handling for null browsed file