replaced bash scripts with php scripts
cleanup