add preserve_paths for framwork