created template utils and moved complie stirng def out to a midclass entry