refactor run and compile main logic
add entryPoint table
impl. fetchScript