helper checks added to bash script