small fix for goatails and py3. probably should rewrite further one day.
fixes to settings