seperated refresh and deploy functions and changes to overall processes
updated migl internal scripts