using bash instead of node due to mem leaks