Refactor/init series and shellscript