wrap "new user(filePath)" with try and catch