deployment logic