fixed deploy script (hopefully for good)