move process to commonScript