replaced with bash script