fix to use settings properly on all platforms