updated to remove the python dependency, uses grep instead