shell script mod and mongo setup