refactored deploy dir