modified server side add functionality