script can now read from a parameter