refactor adding wrapper scripts into snippet