now uses global settings troughout