split mont setup function