fixed script and config fetch