added error logging for unhandled elements and attributes