commit before refreshing modules