allow script to work on parrot & jvm