add apply method to Configration class