changing teplates to a server responsobility
die in hell