improving the fabric script