fixing deploy bugs