automation of dirt deployment

made the changes as required