according to new requirements,I refator he config file and related code