unify 3 scripts into one