cleanup and changed auths / users / channels to a template