new script for refresh and manifest