from bash script to a module