swap src_prefix and prefix