streetfun code copied to ring-server initially