added config object in init method