removed old script function, update docs