make script usable through external-scripts