todo notes
fix issue with ScriptProcessor
add comments and clean up