added version of svr_2sub for gelert. Should be elegantly combined at some point...