added error handling on translate to pump out what the error was