move to bash script