change the order of things so setting are right be for run