improved deploy task