wip on parsing and serializing script