bugfix: now works with already stripped scripts
TODO: command-line argument