change configs to relative path, but code not done yet