Better message handling
Fixed sphix init logic