add escaping, fix settings error