new implementation of dotproduct server.  will work for any N>0