implement deploy mode