mostly working template