more work on importing script

- almost works