fix warnings around class level variable access
include scheme in socket key

closes #223