fix deployment cancelation and remove old deployment classes