need an extra param for script to know its parent