changing this to a server model