adds some serverside logic