converts user objects to unicode, improve error logging
fix error handling