added api for bundled scripts