add sever logic