add resource-list compiling and client-side transfer to templates.  
still need to write-stack-compacting method