improved config scripts