change template path and add tornado option