new logic for load wp config