add setting for encoding