more work on script compiler