trying to get encoding working