modified server to do magic which is not happening