make script of release more flexible