extract release script and add checkout repositories