support all post/pre script token types for writing out spec
fix support for all script types