updated rebar script