fixed postinstall script to fetch api