updated parser and bash script