deploy rotine
environment detection