fixed localsetting import
added templates