switching deploy mode