added error handling to personutils