fix, add script dependencies and small exports