script can now be called from anywhere