add the possibility to use a script, idea by fulup